<template>
<div>
    <el-dialog title="查看已开通药店" :visible.sync="dialogVisible" width="1000px">
      <el-form :inline="true" class="demo-form-inline">
      <el-form-item label="药店名称">
        <el-input />
      </el-form-item>
      <el-form-item label="开通日期" >
        <div class="block">
          <el-date-picker
            v-model="value"
            @change="change"
            type="datetimerange"
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
            format="yyyy-MM-dd HH:mm:ss"
            value-format="yyyy-MM-dd HH:mm:ss"
          ></el-date-picker>
        </div>
      </el-form-item>
      <el-button type="primary" @click="getList(1)">搜索</el-button>
       <el-button type="primary">导出</el-button>
        <el-button plain @click="seeExoprt()">查看导出</el-button>
    </el-form>
     <mytable :data="list" ref="table" @getList="getList" :listQuery="listQuery">
      <el-table-column prop="createTime" align="center" label="省" width="200px"></el-table-column>
      <el-table-column prop="createTime" align="center" label="药店名称"></el-table-column>
      <el-table-column align="center" label="开通时间"></el-table-column>
      <el-table-column align="center" label="支付方式"></el-table-column>
      <el-table-column align="center" label="支付流水号"></el-table-column>
      <el-table-column align="center" label="操作"></el-table-column>
    </mytable>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="submit()">提 交</el-button>
      </span>
    </el-dialog>  
     <seeexcel ref="seeexcel" />
</div>
</template>

<script>
import mytable from "@/components/Table";
import apitrapLog from "@/api/logManage/trapLog";
import seeexcel from "@/components/seeexcel/index"
export default {
  name: "dialogSeePharmacy",
  components: {mytable,seeexcel},
  data() {
    return {
        dialogVisible :false,
        list:[],
        value:[],
        listQuery:{

        },
         listLoading: true
    };
  },
  created() {
    this.getList();
  },
  methods:{
      getList(pageNo) {
      this.listQuery.pageNo = pageNo || this.listQuery.pageNo;
      apitrapLog.query(this.listQuery).then(res => {
        this.$refs.table.load(res.data.page.list, res.data.page.total);
      });
    },
       //弹框
      seePharmacy(row){
        this.getList();
        this.dialogVisible = true
      },
      editMenu(row){
        this.getList();
        this.dialogVisible = true
      },
       //查看导出
    seeExoprt() {
      this.$refs.seeexcel.open();
    },
      //提交
      submit(){
        let farmData = {
        
        }
      }
  }
};
</script>

<style scoped>
</style>